

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>C &mdash; LittlevGL 6.1.2 documentation</title>
  

  
  
    <link rel="shortcut icon" href="../../../_static/favicon.ico"/>
  
  
  

  
  <script type="text/javascript" src="../../../_static/js/modernizr.min.js"></script>
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/jquery.js"></script>
        <script src="../../../_static/underscore.js"></script>
        <script src="../../../_static/doctools.js"></script>
        <script src="../../../_static/language_data.js"></script>
    
    <script type="text/javascript" src="../../../_static/js/theme.js"></script>

    

  
  <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/custom.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/fontawesome.min.css" type="text/css" />
    <link rel="index" title="Index" href="../../../genindex.html" />
    <link rel="search" title="Search" href="../../../search.html" />
 
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-78811084-3"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-78811084-3');
</script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../../../index.html">
          

          
            
            <img src="../../../_static/white_white_lvgl_full_logo.svg" class="logo" alt="Logo"/>
          
          </a>

          
            
            
              <div class="version">
                6.1.2
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul>
<li class="toctree-l1"><a class="reference internal" href="../../../get-started/index.html">Get started</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../../get-started/live-demo.html">Live demos</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../get-started/pc-simulator.html">Simulator on PC</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/pc-simulator.html#select-an-ide">Select an IDE</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/pc-simulator.html#set-up-eclipse-cdt">Set-up Eclipse CDT</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/pc-simulator.html#install-eclipse-cdt">Install Eclipse CDT</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/pc-simulator.html#install-sdl-2">Install SDL 2</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/pc-simulator.html#pre-configured-project">Pre-configured project</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/pc-simulator.html#add-the-pre-configured-project-to-eclipse-cdt">Add the pre-configured project to Eclipse CDT</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/pc-simulator.html#compile-and-run">Compile and Run</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../get-started/quick-overview.html">Quick overview</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/quick-overview.html#add-littlevgl-into-your-project">Add LittlevGL into your project</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/quick-overview.html#learn-the-basics">Learn the basics</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#objects-widgets">Objects (Widgets)</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#styles">Styles</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#events">Events</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/quick-overview.html#examples">Examples</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#button-with-label">Button with label</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#button-with-styles">Button with styles</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#slider-and-object-alignment">Slider and object alignment</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#list-and-themes">List and themes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/quick-overview.html#use-littlevgl-from-micropython">Use LittlevGL from Micropython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/quick-overview.html#contributing">Contributing</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../get-started/micropython.html">Micropython</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/micropython.html#what-is-micropython">What is Micropython?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/micropython.html#highlights-of-micropython">Highlights of Micropython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/micropython.html#why-micropython-littlevgl">Why Micropython + LittlevGL?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/micropython.html#here-are-some-advantages-of-using-littlevgl-in-micropython">Here are some advantages of using LittlevGL in Micropython:</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/micropython.html#micropython-littlevgl-could-be-used-for">Micropython + LittlevGL could be used for:</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/micropython.html#so-what-does-it-look-like">So what does it look like?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/micropython.html#a-simple-example">A simple example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/micropython.html#how-can-i-use-it">How can I use it?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/micropython.html#online-simulator">Online Simulator</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/micropython.html#pc-simulator">PC Simulator</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../get-started/micropython.html#embedded-platform">Embedded platform</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../get-started/micropython.html#where-can-i-find-more-information">Where can I find more information?</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../../porting/index.html">Porting</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/sys.html">System overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/project.html">Set-up a project</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/project.html#get-the-library">Get the library</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/project.html#configuration-file">Configuration file</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/project.html#initialization">Initialization</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/display.html">Display interface</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/display.html#display-buffer">Display buffer</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/display.html#display-driver">Display driver</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/display.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/indev.html">Input device interface</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/indev.html#types-of-input-devices">Types of input devices</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../porting/indev.html#touchpad-mouse-or-any-pointer">Touchpad, mouse or any pointer</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../porting/indev.html#keypad-or-keyboard">Keypad or keyboard</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../porting/indev.html#encoder">Encoder</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../porting/indev.html#button">Button</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/indev.html#other-features">Other features</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/indev.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/tick.html">Tick interface</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/tick.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/task-handler.html">Task Handler</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/sleep.html">Sleep management</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/os.html">Operating system and interrupts</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/os.html#tasks-and-threads">Tasks and threads</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/os.html#interrupts">Interrupts</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../porting/log.html">Logging</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/log.html#log-level">Log level</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/log.html#logging-with-printf">Logging with printf</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/log.html#custom-log-function">Custom log function</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../porting/log.html#add-logs">Add logs</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../../overview/index.html">Overview</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/object.html">Objects</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/object.html#object-attributes">Object attributes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/object.html#basic-attributes">Basic attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/object.html#specific-attributes">Specific attributes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/object.html#object-s-working-mechanisms">Object’s working mechanisms</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/object.html#parent-child-structure">Parent-child structure</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/object.html#moving-together">Moving together</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/object.html#visibility-only-on-the-parent">Visibility only on the parent</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/object.html#create-delete-objects">Create - delete objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/object.html#screen-the-most-basic-parent">Screen – the most basic parent</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/layer.html">Layers</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/layer.html#order-of-creation">Order of creation</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/layer.html#bring-to-the-foreground">Bring to the foreground</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/layer.html#top-and-sys-layers">Top and sys layers</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/event.html">Events</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/event.html#event-types">Event types</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/event.html#generic-events">Generic events</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/event.html#special-events">Special events</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/event.html#custom-data">Custom data</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/event.html#send-events-manually">Send events manually</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/style.html">Styles</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#use-the-styles">Use the styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#inherit-styles">Inherit styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#style-properties">Style properties</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/style.html#common-properties">Common properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/style.html#body-style-properties">Body style properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/style.html#text-style-properties">Text style properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/style.html#image-style-properties">Image style properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/style.html#line-style-properties">Line style properties</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#built-in-styles">Built-in styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#create-new-styles">Create new styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#style-animations">Style animations</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#style-example">Style example</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/style.html#themes">Themes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/style.html#live-update">Live update</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/indev.html">Input devices</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/indev.html#pointers">Pointers</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/indev.html#keypad-and-encoder">Keypad and encoder</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/indev.html#groups">Groups</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/indev.html#complete-example">Complete example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/indev.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/indev.html#input-device">Input device</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/indev.html#id1">Groups</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/display.html">Displays</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/display.html#using-only-one-display">Using only one display</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/display.html#mirror-display">Mirror display</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/display.html#split-image">Split image</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/display.html#screens">Screens</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#opaque-screen">Opaque screen</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/display.html#features-of-displays">Features of displays</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#inactivity">Inactivity</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/display.html#colors">Colors</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#convert-color">Convert color</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#swap-16-colors">Swap 16 colors</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#create-and-mix-colors">Create and mix colors</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#opacity">Opacity</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#built-in-colors">Built-in colors</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/display.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#display">Display</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/display.html#id1">Colors</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/font.html">Fonts</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/font.html#unicode-support">Unicode support</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/font.html#built-in-fonts">Built-in fonts</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/font.html#special-features">Special features</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/font.html#bidirectional-support">Bidirectional support</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/font.html#subpixel-rendering">Subpixel rendering</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/font.html#compress-fonts">Compress fonts</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/font.html#add-new-font">Add new font</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/font.html#add-new-symbols">Add new symbols</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/font.html#add-a-new-font-engine">Add a new font engine</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/image.html">Images</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/image.html#store-images">Store images</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#variables">Variables</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#files">Files</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/image.html#color-formats">Color formats</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/image.html#add-and-use-images">Add and use images</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#online-converter">Online converter</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#manually-create-an-image">Manually create an image</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#use-images">Use images</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/image.html#image-decoder">Image decoder</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#custom-image-formats">Custom image formats</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#register-an-image-decoder">Register an image decoder</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#manually-use-an-image-decoder">Manually use an image decoder</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/image.html#image-caching">Image caching</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#cache-size">Cache size</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#value-of-images">Value of images</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#memory-usage">Memory usage</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#clean-the-cache">Clean the cache</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/image.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#id1">Image decoder</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/image.html#image-cache">Image cache</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/file-system.html">File system</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/file-system.html#add-a-driver">Add a driver</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/file-system.html#usage-example">Usage example</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/file-system.html#use-drivers-for-images">Use drivers for images</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/file-system.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/animation.html">Animations</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/animation.html#create-an-animation">Create an animation</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/animation.html#animation-path">Animation path</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/animation.html#speed-vs-time">Speed vs time</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/animation.html#delete-animations">Delete animations</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/animation.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../overview/animation.html#input-device">Input device</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/task.html">Tasks</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/task.html#create-a-task">Create a task</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/task.html#ready-and-reset">Ready and Reset</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/task.html#set-parameters">Set parameters</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/task.html#one-shot-tasks">One-shot tasks</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/task.html#measure-idle-time">Measure idle time</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/task.html#asynchronous-calls">Asynchronous calls</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/task.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../overview/drawing.html">Drawing</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/drawing.html#buffering-types">Buffering types</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../overview/drawing.html#mechanism-of-screen-refreshing">Mechanism of screen refreshing</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../../object-types/index.html">Object types (Widgets)</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/obj.html">Base object (lv_obj)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/obj.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#coordinates">Coordinates</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#parents-and-children">Parents and children</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#screens">Screens</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#layers">Layers</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#style">Style</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#events">Events</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#attributes">Attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#opa-scale">Opa scale</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#protect">Protect</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#groups">Groups</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#extended-click-area">Extended click area</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/obj.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/obj.html#id1">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/obj.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/obj.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/obj.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/obj.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/arc.html">Arc (lv_arc)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/arc.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/arc.html#angles">Angles</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/arc.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/arc.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/arc.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/arc.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/arc.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/arc.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/arc.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/arc.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/bar.html">Bar (lv_bar)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/bar.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/bar.html#value-and-range">Value and range</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/bar.html#symmetrical">Symmetrical</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/bar.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/bar.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/bar.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/bar.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/bar.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/bar.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/bar.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/btn.html">Button (lv_btn)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btn.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btn.html#states">States</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btn.html#toggle">Toggle</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btn.html#layout-and-fit">Layout and Fit</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btn.html#ink-effect">Ink effect</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btn.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btn.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btn.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btn.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btn.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btn.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btn.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/btnm.html">Button matrix (lv_btnm)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btnm.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btnm.html#button-s-text">Button’s text</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btnm.html#control-buttons">Control buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btnm.html#one-toggle">One toggle</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btnm.html#recolor">Recolor</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btnm.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btnm.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btnm.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btnm.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btnm.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btnm.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/btnm.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/btnm.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/calendar.html">Calendar (lv_calendar)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/calendar.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/calendar.html#current-date">Current date</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/calendar.html#shown-date">Shown date</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/calendar.html#highlighted-days">Highlighted days</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/calendar.html#name-of-the-days">Name of the days</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/calendar.html#name-of-the-months">Name of the months</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/calendar.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/calendar.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/calendar.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/calendar.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/calendar.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/calendar.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/calendar.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/canvas.html">Canvas (lv_canvas)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/canvas.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/canvas.html#buffer">Buffer</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/canvas.html#palette">Palette</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/canvas.html#drawing">Drawing</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/canvas.html#rotate">Rotate</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/canvas.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/canvas.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/canvas.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/canvas.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/canvas.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/canvas.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/canvas.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/cb.html">Checkbox (lv_cb)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cb.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cb.html#text">Text</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cb.html#check-uncheck">Check/Uncheck</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cb.html#inactive">Inactive</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cb.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cb.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cb.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cb.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cb.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cb.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cb.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/chart.html">Chart (lv_chart)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/chart.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#data-series">Data series</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#series-type">Series’ type</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#modify-the-data">Modify the data</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#update-modes">Update modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#number-of-points">Number of points</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#vertical-range">Vertical range</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#division-lines">Division lines</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#series-appearance">Series’ appearance</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#tick-marks-and-labels">Tick marks and labels</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/chart.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/chart.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/chart.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/chart.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/chart.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/chart.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/cont.html">Container (lv_cont)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cont.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cont.html#layout">Layout</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cont.html#autofit">Autofit</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cont.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cont.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cont.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cont.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cont.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cont.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cont.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/cpicker.html">Color picker (lv_cpicker)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cpicker.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cpicker.html#types-of-color-pickers">Types of color pickers</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/cpicker.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cpicker.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cpicker.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cpicker.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cpicker.html#example">Example</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/cpicker.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/ddlist.html">Drop-down list (lv_ddlist)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ddlist.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#set-options">Set options</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#get-selected-option">Get selected option</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#align-the-options">Align the options</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#height-and-width">Height and width</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#animation-time">Animation time</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#decoration-arrow">Decoration arrow</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#manually-open-close">Manually open/close</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#stay-open">Stay open</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ddlist.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ddlist.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ddlist.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ddlist.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ddlist.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ddlist.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/gauge.html">Gauge (lv_gauge)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/gauge.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/gauge.html#scale">Scale</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/gauge.html#needles">Needles</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/gauge.html#range">Range</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/gauge.html#critical-value">Critical value</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/gauge.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/gauge.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/gauge.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/gauge.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/gauge.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/gauge.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/gauge.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/img.html">Image (lv_img)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/img.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#image-source">Image source</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#label-as-an-image">Label as an image</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#transparency">Transparency</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#palette-and-alpha-index">Palette and Alpha index</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#recolor">Recolor</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#auto-size">Auto-size</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#mosaic">Mosaic</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#offset">Offset</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/img.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/img.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/img.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/img.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/img.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/img.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/imgbtn.html">Image button (lv_imgbtn)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/imgbtn.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/imgbtn.html#image-sources">Image sources</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/imgbtn.html#states">States</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/imgbtn.html#toggle">Toggle</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/imgbtn.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/imgbtn.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/imgbtn.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/imgbtn.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/imgbtn.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/imgbtn.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/imgbtn.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/kb.html">Keyboard (lv_kb)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/kb.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/kb.html#modes">Modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/kb.html#assign-text-area">Assign Text area</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/kb.html#new-keymap">New Keymap</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/kb.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/kb.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/kb.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/kb.html#examples">Examples</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/kb.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/kb.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/kb.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/label.html">Label (lv_label)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/label.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#set-text">Set text</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#line-break">Line break</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#long-modes">Long modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#text-align">Text align</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#draw-background">Draw background</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#text-recolor">Text recolor</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#very-long-texts">Very long texts</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#symbols">Symbols</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/label.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/label.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/label.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/label.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/label.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/label.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/led.html">LED (lv_led)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/led.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/led.html#brightness">Brightness</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/led.html#toggle">Toggle</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/led.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/led.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/led.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/led.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/led.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/led.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/led.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/line.html">Line (lv_line)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/line.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/line.html#set-points">Set points</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/line.html#auto-size">Auto-size</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/line.html#invert-y">Invert y</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/line.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/line.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/line.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/line.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/line.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/line.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/line.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/list.html">List (lv_list)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/list.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#add-buttons">Add buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#delete-buttons">Delete buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#manual-navigation">Manual navigation</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#layout">Layout</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#edge-flash">Edge flash</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#scroll-propagation">Scroll propagation</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/list.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/list.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/list.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/list.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/list.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/list.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/lmeter.html">Line meter (lv_lmeter)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/lmeter.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/lmeter.html#set-value">Set value</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/lmeter.html#range-and-angles">Range and Angles</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/lmeter.html#angle-offset">Angle offset</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/lmeter.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/lmeter.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/lmeter.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/lmeter.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/lmeter.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/lmeter.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/lmeter.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/mbox.html">Message box (lv_mbox)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/mbox.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/mbox.html#set-text">Set text</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/mbox.html#add-buttons">Add buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/mbox.html#auto-close">Auto-close</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/mbox.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/mbox.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/mbox.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/mbox.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/mbox.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/mbox.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/page.html">Page (lv_page)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/page.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#glue-object">Glue object</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#focus-object">Focus object</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#manual-navigation">Manual navigation</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#edge-flash">Edge flash</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#scroll-propagation">Scroll propagation</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#scrollable-api">Scrollable API</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/page.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/page.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/page.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/page.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/page.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/preload.html">Preloader (lv_preload)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/preload.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/preload.html#arc-length">Arc length</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/preload.html#spinning-speed">Spinning speed</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/preload.html#spin-types">Spin types</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/preload.html#spin-direction">Spin direction</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/preload.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/preload.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/preload.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/preload.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/preload.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/preload.html#id1">MicroPython</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/preload.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/preload.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/roller.html">Roller (lv_roller)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/roller.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/roller.html#set-options">Set options</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/roller.html#get-selected-option">Get selected option</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/roller.html#align-the-options">Align the options</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/roller.html#height-and-width">Height and width</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/roller.html#animation-time">Animation time</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/roller.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/roller.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/roller.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/roller.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/roller.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/roller.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/roller.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/slider.html">Slider (lv_slider)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/slider.html#overview">Overview</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/slider.html#value-and-range">Value and range</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/slider.html#symmetrical">Symmetrical</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/slider.html#knob-placement">Knob placement</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/slider.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/slider.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/slider.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/slider.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/slider.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/slider.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/slider.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/spinbox.html">Spinbox (lv_spinbox)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/spinbox.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/spinbox.html#set-format">Set format</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/spinbox.html#value-and-ranges">Value and ranges</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/spinbox.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/spinbox.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/spinbox.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/spinbox.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/spinbox.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/spinbox.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/spinbox.html#api">API</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/spinbox.html#id1">Example</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/sw.html">Switch (lv_sw)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/sw.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/sw.html#change-state">Change state</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/sw.html#animation-time">Animation time</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/sw.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/sw.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/sw.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/sw.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/sw.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/sw.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/sw.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/table.html">Table (lv_table)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/table.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#rows-and-columns">Rows and Columns</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#width-and-height">Width and Height</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#set-cell-value">Set cell value</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#align">Align</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#cell-type">Cell type</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#merge-cells">Merge cells</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#crop-text">Crop text</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#scroll">Scroll</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/table.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/table.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/table.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/table.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#id1">MicroPython</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/table.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/table.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/tabview.html">Tabview (lv_tabview)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tabview.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tabview.html#adding-tab">Adding tab</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tabview.html#change-tab">Change tab</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tabview.html#tab-button-s-position">Tab button’s position</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tabview.html#hide-the-tabs">Hide the tabs</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tabview.html#animation-time">Animation time</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tabview.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tabview.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tabview.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tabview.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tabview.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tabview.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tabview.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/ta.html">Text area (lv_ta)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ta.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#add-text">Add text</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#placeholder">Placeholder</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#delete-character">Delete character</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#move-the-cursor">Move the cursor</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#cursor-types">Cursor types</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#one-line-mode">One line mode</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#password-mode">Password mode</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#text-align">Text align</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#accepted-characters">Accepted characters</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#max-text-length">Max text length</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#very-long-texts">Very long texts</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#select-text">Select text</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#scroll-propagation">Scroll propagation</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#edge-flash">Edge flash</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ta.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ta.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ta.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ta.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/ta.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/ta.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/tileview.html">Tile view (lv_tileview)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tileview.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tileview.html#valid-positions">Valid positions</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tileview.html#add-element">Add element</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tileview.html#set-tile">Set tile</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tileview.html#animation-time">Animation time</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tileview.html#edge-flash">Edge flash</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tileview.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tileview.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tileview.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tileview.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tileview.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/tileview.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/tileview.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../object-types/win.html">Window (lv_win)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/win.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/win.html#title">Title</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/win.html#control-buttons">Control buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/win.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/win.html#manual-scroll-and-focus">Manual scroll and focus</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/win.html#layout">Layout</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/win.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/win.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/win.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/win.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/win.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../object-types/win.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../object-types/win.html#api">API</a></li>
</ul>
</li>
</ul>
</li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../index.html">LittlevGL</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../../index.html">Docs</a> &raquo;</li>
        
      <li>C</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="../../../_sources/lv_examples/src/lv_ex_btnm/index.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="c">
<h1>C<a class="headerlink" href="#c" title="Permalink to this headline">¶</a></h1>
<div class="section" id="simple-button-matrix">
<h2>Simple Button matrix<a class="headerlink" href="#simple-button-matrix" title="Permalink to this headline">¶</a></h2>
<img alt="Simple Button matrix example in LittlevGL" src="../../../_images/lv_ex_btnm_1.gif" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;lvgl/lvgl.h&quot;</span><span class="cp"></span>
<span class="cp">#include</span> <span class="cpf">&lt;stdio.h&gt;</span><span class="cp"></span>

<span class="k">static</span> <span class="kt">void</span> <span class="nf">event_handler</span><span class="p">(</span><span class="n">lv_obj_t</span> <span class="o">*</span> <span class="n">obj</span><span class="p">,</span> <span class="n">lv_event_t</span> <span class="n">event</span><span class="p">)</span>
<span class="p">{</span>
    <span class="k">if</span><span class="p">(</span><span class="n">event</span> <span class="o">==</span> <span class="n">LV_EVENT_VALUE_CHANGED</span><span class="p">)</span> <span class="p">{</span>
        <span class="k">const</span> <span class="kt">char</span> <span class="o">*</span> <span class="n">txt</span> <span class="o">=</span> <span class="n">lv_btnm_get_active_btn_text</span><span class="p">(</span><span class="n">obj</span><span class="p">);</span>

        <span class="n">printf</span><span class="p">(</span><span class="s">&quot;%s was pressed</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span> <span class="n">txt</span><span class="p">);</span>
    <span class="p">}</span>
<span class="p">}</span>


<span class="k">static</span> <span class="k">const</span> <span class="kt">char</span> <span class="o">*</span> <span class="n">btnm_map</span><span class="p">[]</span> <span class="o">=</span> <span class="p">{</span><span class="s">&quot;1&quot;</span><span class="p">,</span> <span class="s">&quot;2&quot;</span><span class="p">,</span> <span class="s">&quot;3&quot;</span><span class="p">,</span> <span class="s">&quot;4&quot;</span><span class="p">,</span> <span class="s">&quot;5&quot;</span><span class="p">,</span> <span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
                                  <span class="s">&quot;6&quot;</span><span class="p">,</span> <span class="s">&quot;7&quot;</span><span class="p">,</span> <span class="s">&quot;8&quot;</span><span class="p">,</span> <span class="s">&quot;9&quot;</span><span class="p">,</span> <span class="s">&quot;0&quot;</span><span class="p">,</span> <span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
                                  <span class="s">&quot;Action1&quot;</span><span class="p">,</span> <span class="s">&quot;Action2&quot;</span><span class="p">,</span> <span class="s">&quot;&quot;</span><span class="p">};</span>

<span class="kt">void</span> <span class="nf">lv_ex_btnm_1</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
    <span class="n">lv_obj_t</span> <span class="o">*</span> <span class="n">btnm1</span> <span class="o">=</span> <span class="n">lv_btnm_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_btnm_set_map</span><span class="p">(</span><span class="n">btnm1</span><span class="p">,</span> <span class="n">btnm_map</span><span class="p">);</span>
    <span class="n">lv_btnm_set_btn_width</span><span class="p">(</span><span class="n">btnm1</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>        <span class="cm">/*Make &quot;Action1&quot; twice as wide as &quot;Action2&quot;*/</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">btnm1</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
    <span class="n">lv_obj_set_event_cb</span><span class="p">(</span><span class="n">btnm1</span><span class="p">,</span> <span class="n">event_handler</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
</div>
<div class="section" id="micropython">
<h1>MicroPython<a class="headerlink" href="#micropython" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2>Simple Button matrix<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<img alt="Simple Button matrix example in LittlevGL with MicroPython" src="../../../_images/lv_ex_btnm_1.gif" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">event_handler</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">event</span><span class="p">):</span>
    <span class="k">if</span> <span class="n">event</span> <span class="o">==</span> <span class="n">lv</span><span class="o">.</span><span class="n">EVENT</span><span class="o">.</span><span class="n">VALUE_CHANGED</span><span class="p">:</span>
        <span class="n">txt</span> <span class="o">=</span> <span class="n">obj</span><span class="o">.</span><span class="n">get_active_btn_text</span><span class="p">()</span>
        <span class="k">print</span><span class="p">(</span><span class="s2">&quot;</span><span class="si">%s</span><span class="s2"> was pressed&quot;</span> <span class="o">%</span> <span class="n">txt</span><span class="p">)</span>

<span class="n">btnm_map</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;1&quot;</span><span class="p">,</span> <span class="s2">&quot;2&quot;</span><span class="p">,</span> <span class="s2">&quot;3&quot;</span><span class="p">,</span> <span class="s2">&quot;4&quot;</span><span class="p">,</span> <span class="s2">&quot;5&quot;</span><span class="p">,</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">,</span>
            <span class="s2">&quot;6&quot;</span><span class="p">,</span> <span class="s2">&quot;7&quot;</span><span class="p">,</span> <span class="s2">&quot;8&quot;</span><span class="p">,</span> <span class="s2">&quot;9&quot;</span><span class="p">,</span> <span class="s2">&quot;0&quot;</span><span class="p">,</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">,</span>
            <span class="s2">&quot;Action1&quot;</span><span class="p">,</span> <span class="s2">&quot;Action2&quot;</span><span class="p">,</span> <span class="s2">&quot;&quot;</span><span class="p">]</span>

<span class="n">btnm1</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">btnm</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">btnm1</span><span class="o">.</span><span class="n">set_map</span><span class="p">(</span><span class="n">btnm_map</span><span class="p">)</span>
<span class="n">btnm1</span><span class="o">.</span><span class="n">set_btn_width</span><span class="p">(</span><span class="mi">10</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>        <span class="c1"># Make &quot;Action1&quot; twice as wide as &quot;Action2&quot;</span>
<span class="n">btnm1</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
<span class="n">btnm1</span><span class="o">.</span><span class="n">set_event_cb</span><span class="p">(</span><span class="n">event_handler</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>
</div>


           </div>
           
          </div>
          <footer>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2020, Gabor Kiss-Vamosi
      <span class="lastupdated">
        Last updated on Nov 21, 2020.
      </span>

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
  

 <script type="text/javascript">
    $(document).ready(function() {
        $(".toggle > *").hide();
        $(".toggle .header").show();
        $(".toggle .header").click(function() {
            $(this).parent().children().not(".header").toggle(400);
            $(this).parent().children(".header").toggleClass("open");
        })
    });
</script>


<script type="text/javascript" src="https://docs.lvgl.io/misc/common.js"></script>



</body>
</html>